#!/bin/bash
funcs=`which functions.sh`
if [ "$funcs" != "" ] ;then
    . $funcs
else
    funcs=`dirname $0`/functions.sh
    echo "$PWD"
    echo "funcs=$funcs"
    if [ "$funcs" != "" ] ;then
	. $funcs
    else
	exit
    fi
fi
#脚步入口：解析参数
while test $# != 0
do
    case $1 in
	--config)
	    shift
	    config=$1
	    ;;
	-m)
	    shift
	    mode=$1
	    ;;
        *)
	    externel=$1
	    ;;
       esac
       shift
done
if [ -n "$config" ]; then
  config="--config $config" 
fi
sh_dpkg_install "curlftpfs sshpass"
smart.shc -m ssh $externel $config

